
<!-- pageNavigationTemplate begin -->
<!-- name="action" value="" -->
<!-- name="curIdx" value="0" -->
<!-- name="pageCount" value="10" -->
<!-- name="recordCount" value="100" -->
<script type="text/javascript">
    function pageNavigationTemplate_keydown(){
        if(event.keyCode==13){
           self.open("user.action?pageIdx="+this.value,"_self");
        }
    }
</script>



parameters:${parameters}
<s:set name="pageNum" value="parameters.recordCount/parameters.pageCount" />
<s:set name="pageNum" value="#pageNum < 1 ? 1 : #pageNum" />
<s:set name="pageNavDis" value="5" />
<s:set name="pageNavBegin" value="parameters.curIdx - 5 >= 0 ? parameters.curIdx-5 : 0" />
<s:set name="pageNavEnd" value="parameters.curIdx + 5" />
<s:set name="pageNavEnd" value="#pageNavEnd >= #pageNum ? (#pageNum - 1) : (parameters.curIdx + 5)" />
pageNum:${pageNum}
pageNavDis:${pageNavDis}
pageNavBegin:${pageNavBegin}
pageNavEnd:${pageNavEnd}
action:${parameters.action}
kin:${parameters.kin}
idxParamName:${parameters.idxParamName}
<s:property value="parameters.action" /> 

<s:url value="parameters.action">
</s:url>

<s:url>
    <s:param name="pageIdx" value="parameters.curIdx" />
</s:url>



<% for(int i = #pageNavBegin ; i < 10 ; i++) {%>
<s:url>
    <s:param name="pageIdx" value="parameters.curIdx" />
</s:url>
<% } %>


<span class=ipagenav>
    <s:if test="parameters.curIdx==0">
        <span>首页</span>
    </s:if>
    <s:else>
        <a href="<s:url><s:param name="pageIdx" value="0" /></s:url>">首页</a>
    </s:else>
    &nbsp;
    <s:if test="parameters.curIdx==0">
        <span>前一页</span>
    </s:if>
    <s:else>
        <a href="<s:url><s:param name="pageIdx" value="parameters.curIdx-1" /></s:url>">前一页</a>
    </s:else>
    &nbsp;&nbsp;
    
    
    [<b>1</b>]
    <a href="user.action?pageIdx=1">2</a>
    <a href="user.action?pageIdx=2">3</a>
    <a href="user.action?pageIdx=3">4</a> 
    <a href="user.action?pageIdx=4">5</a> 
    <a href="user.action?pageIdx=5">6</a> 
    <a href="user.action?pageIdx=6">7</a> 
    <a href="user.action?pageIdx=7">8</a> 
    <a href="user.action?pageIdx=8">9</a> 
    <a href="user.action?pageIdx=9">10</a> 
    <a href="user.action?pageIdx=10">11</a> 
    <a href="user.action?pageIdx=11">12</a>
    &nbsp;&nbsp;
    <a href="user.action?pageIdx=1" title="后一页">后一页</a>
    &nbsp;
    <a href="user.action?pageIdx=19" title="尾页">尾页</a>
    &nbsp;&nbsp;&nbsp;跳到
    <input type='text' id='thepage' size='3' class="admTextSeven" onkeydown='pageNavigationTemplate_keydown()' />
     页&nbsp;&nbsp;&nbsp;共100个20页
</span>


<!-- pageNavigationTemplate end -->
